/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.cggveritas.crewintranet.jms.utils;

/**
 *
 * @author Alassane
 */
public class StatusElement {

    private String valide = "#25E600";
    private String invalide = "#E60000";
    private String intermediaire = "#E69700";
    private Short etat;

    public StatusElement(Short etat) {
        this.etat = etat;
    }

    public StatusElement() {
    }

    public Short getEtat() {
        return etat;
    }

    public String getEtatByEtat() {
        if(etat==0){
            return invalide;
        }
        if(etat==1){
            return intermediaire;
        }
        if(etat==2){
            return valide;
        }
        return null;
    }

    public void setEtat(Short etat) {
        this.etat = etat;
    }

    public String getValide() {
        return valide;
    }

    public void setValide(String valide) {
        this.valide = valide;
    }

    public String getInvalide() {
        return invalide;
    }

    public void setInvalide(String invalide) {
        this.invalide = invalide;
    }

    public String getIntermediaire() {
        return intermediaire;
    }

    public void setIntermediaire(String intermediaire) {
        this.intermediaire = intermediaire;
    }
}
